package com.ruoyi.client.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.client.mapper.CargoFeedbackMapper;
import com.ruoyi.client.domain.CargoFeedback;
import com.ruoyi.client.service.ICargoFeedbackService;

/**
 * 意见反馈Service业务层处理
 * 
 * @author zhk
 * @date 2024-08-14
 */
@Service
public class CargoFeedbackServiceImpl implements ICargoFeedbackService 
{
    @Autowired
    private CargoFeedbackMapper cargoFeedbackMapper;

    /**
     * 查询意见反馈
     * 
     * @param id 意见反馈主键
     * @return 意见反馈
     */
    @Override
    public CargoFeedback selectCargoFeedbackById(Long id)
    {
        return cargoFeedbackMapper.selectCargoFeedbackById(id);
    }

    /**
     * 查询意见反馈列表
     * 
     * @param cargoFeedback 意见反馈
     * @return 意见反馈
     */
    @Override
    public List<CargoFeedback> selectCargoFeedbackList(CargoFeedback cargoFeedback)
    {
        return cargoFeedbackMapper.selectCargoFeedbackList(cargoFeedback);
    }

    /**
     * 新增意见反馈
     * 
     * @param cargoFeedback 意见反馈
     * @return 结果
     */
    @Override
    public int insertCargoFeedback(CargoFeedback cargoFeedback)
    {
        return cargoFeedbackMapper.insertCargoFeedback(cargoFeedback);
    }

    /**
     * 修改意见反馈
     * 
     * @param cargoFeedback 意见反馈
     * @return 结果
     */
    @Override
    public int updateCargoFeedback(CargoFeedback cargoFeedback)
    {
        return cargoFeedbackMapper.updateCargoFeedback(cargoFeedback);
    }

    /**
     * 批量删除意见反馈
     * 
     * @param ids 需要删除的意见反馈主键
     * @return 结果
     */
    @Override
    public int deleteCargoFeedbackByIds(Long[] ids)
    {
        return cargoFeedbackMapper.deleteCargoFeedbackByIds(ids);
    }

    /**
     * 删除意见反馈信息
     * 
     * @param id 意见反馈主键
     * @return 结果
     */
    @Override
    public int deleteCargoFeedbackById(Long id)
    {
        return cargoFeedbackMapper.deleteCargoFeedbackById(id);
    }
}
